import request from '../utils/request';
const baseUrl = getApp().globalData.baseUrl

// 历史评价列表
export function queryEvaluate(data) {
  return request({
    url: `${baseUrl}/car/owner/queryEvaluate`,
    method: 'post',
    data
  })
}

// 查询评价试题
export function queryQuestionByType(data) {
  return request({
    url: `${baseUrl}/car/owner/queryQuestionByType`,
    method: 'post',
    data
  })
}

// 保存评价
export function saveEvaluate(data) {
  return request({
    url: `${baseUrl}/car/owner/saveEvaluate`,
    method: 'post',
    data
  })
}

// 查询历史评价详情
export function queryEvaluateInfo(data) {
  return request({
    url: `${baseUrl}/car/owner/queryEvaluateInfo`,
    method: 'post',
    data
  })
}